<?php
/*
 * @Date: 2021-05-09 23:49:23
 * @Author: yukun
 * @LastEditors: yukun
 * @LastEditTime: 2021-05-09 23:52:07
 * @FilePath: /design-patterns-study/装饰器模式/Go.php
 * @Description: 
 */

require "Article.php";
require "Header.php";
require "Footer.php";

$article = new Article('我写了一篇文章');
$article = new Header($article);
$article = new Footer($article);

echo $article->zhuangshi();